--test key mix
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;


entity test_km is
    Port ( din : in  STD_LOGIC_VECTOR (7 downto 0);
		dout : out  STD_LOGIC_VECTOR (7 downto 0));
end test_km;


architecture Behavioral of test_km is

component keymix is
    Port ( kid : in  STD_LOGIC_VECTOR (127 downto 0);
		kik : in STD_LOGIC_VECTOR (127 downto 0);
		ko : out  STD_LOGIC_VECTOR (127 downto 0));
end component keymix;

signal mdin, kmkm, kmo : STD_LOGIC_VECTOR (127 downto 0);
begin
mdin(7 downto 0) <=  din(7 downto 0);
mdin(127 downto 8) <= X"AFB3299C0A397BADD4A3C736294B45";

km1: keymix port map (mdin, X"FF99123867BC23AD435CA23F456B5678", kmkm);
km2: keymix port map (kmkm, X"FF99123867BC23AD435CA23F456B5678", kmo);

dout(7 downto 0)<=kmo(7 downto 0);
end Behavioral;
